package com.nbsaas.boot.customer.rest.convert;

import com.nbsaas.boot.customer.data.entity.CustomerInvoice;
import com.nbsaas.boot.customer.api.domain.response.CustomerInvoiceResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* -实体对象转化成响应对象
*/

public class CustomerInvoiceResponseConvert  implements Converter<CustomerInvoiceResponse,CustomerInvoice> {

    @Override
    public CustomerInvoiceResponse convert(CustomerInvoice source) {
        CustomerInvoiceResponse  result = new  CustomerInvoiceResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

